package com.qf.elasticsearch.query;

import java.io.IOException;
import java.util.List;
import java.util.Map;

/**
 * create by 郑大仙丶
 * 2019/11/21 18:55
 */
public interface QueryTermService {

    //1. term查询
    List<Map<String,Object>> termQuery(String index,String type,String name,String value,Integer from,Integer size) throws IOException;


    //2. terms查询
    List<Map<String,Object>> termsQuery(String index,String type,String name,String[] values,Integer from,Integer size) throws IOException;

}
